<template>
  <div>
    <div class="header">
      <div class="header-bar">
        <div class="left"  @click="$router.push('/userInfo')">
          <i class="iconfont icon-gengduo"></i>
        </div>
        <div class="center">MUSIC-VUE</div>
        <div class="left">
          <router-link to="/history">
          <i class="iconfont icon-jilu"></i>
          </router-link>
          <router-link to="/search">
          <i class="iconfont icon-fangdajing"></i>
          </router-link>
        </div>
      </div>
      <div class="nav">
        <ul>
          <router-link to="/recommend" tag="li"><span>推荐</span></router-link>
          <router-link to="/rank" tag="li"><span>排行</span></router-link>
          <router-link to="/singer" tag="li"><span>歌手</span></router-link>
          <router-link to="/mv" tag="li"><span>mv</span></router-link>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {

};
</script>
<style lang="less">
.header{
  .iconfont{
    color: white;
  }
  background-color:#d44439;
  .header-bar{
    height: 40px;
    display: flex;
    text-align: center;
    .left,.right{
      flex: 0 0 40px;
      line-height: 40px;     
    }
    .center{
      flex: 1;
      font-size: 14px;
      color: white;
      font-weight: bold;
      line-height: 40px;
    }
    i{
      font-size: 22px;
    }
  }
  .nav{
    height: 40px;
    ul{
      display: flex;
      li{
        color: white;
        font-size: 14px;
        flex: 0 0 25%;
        text-align: center;
        line-height: 40px;
        span{
              border-bottom:1px solid transparent ;
        }
        
      }
      .active{
        span{
          font-weight: bold;
        border-bottom: 1px solid #fff;
        }
      }
    }
  }
}
</style>